package me.zxc.utils;

import java.math.BigDecimal;

/**
 * @author zhangxucheng
 * @version 1.0
 * @since 2022/7/29
 */
public class ComputeUtil {
    public static String exactDivide(int a, int b){
        BigDecimal b1 = new BigDecimal(a).setScale(8, BigDecimal.ROUND_CEILING);
        BigDecimal b2 = new BigDecimal(b).setScale(8, BigDecimal.ROUND_CEILING);
        return b1.divide(b2, BigDecimal.ROUND_CEILING).toString();
    }
}
